Skip to content

Conversation

@anyulled
Copy link
Member

@anyulled anyulled commented Jun 9, 2025

No description provided.

@anyulled anyulled requested review from icougil and jonathanvila June 9, 2025 23:49
@anyulled anyulled self-assigned this Jun 9, 2025
@anyulled anyulled added the enhancement New feature or request label Jun 9, 2025
@netlify
Copy link

netlify bot commented Jun 9, 2025

Deploy Preview for dev-bcn ready!

Name Link
🔨 Latest commit b128235
🔍 Latest deploy log https://app.netlify.com/projects/dev-bcn/deploys/6847766f2e6132000846de80
😎 Deploy Preview https://deploy-preview-725--dev-bcn.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 41
Accessibility: 86
Best Practices: 92
SEO: 92
PWA: 90
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @anyulled, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello! Gemini here, providing a summary of this pull request. This PR introduces support for OpenFeedback links for the 2025 conference and makes the OpenFeedback link dynamic for all years (2023, 2024, 2025) by reading the specific conference ID from the respective year's JSON data file. Additionally, it includes a refactoring of import paths across several files to use path aliases, improving code readability and maintainability.

Highlights

  • Dynamic OpenFeedback Links: The OpenFeedback link in the TalkCard component is no longer hardcoded for 2024. It now dynamically constructs the URL using an openFeedbackId passed down through components, allowing it to work correctly for 2023, 2024, and 2025 based on the data provided.
  • Conference Data Updates: The openFeedbackId field has been added to the 2023.json, 2024.json, and 2025.json data files, storing the unique identifier needed to construct the correct OpenFeedback URL for each conference year.
  • Component Prop Updates: The TrackInformation and TalkCard components have been updated to accept the new openFeedbackId prop, which is then used by TalkCard to generate the dynamic OpenFeedback link.
  • Import Alias Refactoring: Several files (Talks2023.tsx, Talks2024.tsx, TalkCard.tsx, TrackInformation.tsx, Talks.tsx, TalkCard.tsx in views/Talks/components) have had their relative import paths (../../...) replaced with configured path aliases (@assets/..., @components/..., etc.) for cleaner imports.
  • Component Export Change: The TalkCard component in src/components/common/TalkCard.tsx has changed from a default export to a named export, requiring corresponding updates in files that import it (TrackInformation.tsx and src/views/Talks/components/TalkCard.tsx).

Changelog

Click here to see the changelog
  • src/2023/Talks/Talks2023.tsx
    • Refactored import paths to use aliases (lines 2-7, 15, 19, 21).
    • Changed single quotes to double quotes in regex replacement (line 54).
    • Passed openFeedbackId prop to TrackInformation component (line 136).
  • src/2024/Talks/Talks2024.tsx
    • Refactored import paths to use aliases (lines 2-7, 9, 13, 20, 22).
    • Changed single quotes to double quotes in regex replacement (line 55).
    • Passed openFeedbackId prop to TrackInformation component (line 138).
  • src/components/common/TalkCard.tsx
    • Refactored import paths to use aliases (lines 11-12, 20-21, 25, 31).
    • Added openFeedbackId property to TalkCardProps interface (line 46).
    • Added openFeedbackId as a prop to the TalkCard component (line 77).
    • Updated the OpenFeedback link href to use the dynamic openFeedbackId prop (line 117).
    • Removed the default export for TalkCard (line 127).
  • src/components/common/TrackInformation.tsx
    • Refactored import paths to use aliases (lines 3-6, 8).
    • Changed TalkCard import from default to named (line 2).
    • Added openFeedbackId property to TrackInfoProps interface (line 13).
    • Added openFeedbackId as a prop to the TrackInformation component (line 28).
    • Passed the openFeedbackId prop down to the TalkCard component (line 42).
  • src/data/2023.json
    • Added openFeedbackId field with value "devbcn-2023" (line 24).
  • src/data/2024.json
    • Added openFeedbackId field with value "devbcn24" (line 25).
  • src/data/2025.json
    • Added openFeedbackId field with value "TG4hBcL7iPtV2LecVdHu" (line 24).
  • src/views/Talks/Talks.tsx
    • Refactored import paths to use aliases (lines 2-7, 15, 20, 21).
    • Passed openFeedbackId prop to TrackInformation component (line 170).
  • src/views/Talks/components/TalkCard.tsx
    • Refactored import paths to use aliases (line 5).
    • Changed CommonTalkCard import from default to named with alias (line 3).
    • Minor formatting change in component definition (lines 9-11).
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the openFeedbackId to integrate an open feedback system across different conference years (2023, 2024, 2025). The changes involve updating data files and passing the new ID through relevant components to construct feedback links.

Key improvements include the consistent use of path aliases for imports, which enhances maintainability. The core logic for incorporating the openFeedbackId appears correct.

However, there's a significant concern regarding the visibility of the feedback link itself, which is detailed in a review comment. Other changes are generally positive or minor stylistic updates.

Summary of Findings

  • Path Alias Standardization: The updates to use path aliases (e.g., @assets, @components, @hooks, @data, @styles, @constants, @views, @types, @services) across multiple files are a commendable improvement. This enhances code maintainability, readability, and makes navigating the codebase easier.
  • TalkCard Export Refactoring: The change from a default export to a named export for TalkCard in src/components/common/TalkCard.tsx, along with the corresponding updates in importing files, is a good refactoring. Named exports are often preferred for clarity and consistency.
  • Configuration of openFeedbackId: The openFeedbackId has been successfully added to the conference data files for 2023, 2024, and 2025. It's noted that the ID for 2025 (TG4hBcL7iPtV2LecVdHu) follows a different pattern than those for 2023 (devbcn-2023) and 2024 (devbcn24). This is likely by design or due to the ID generation scheme of OpenFeedback for the new year, but it's an observation. (This finding is of low severity and not commented inline due to review settings).
  • Stylistic Consistency: Minor stylistic changes, such as updating single quotes to double quotes in string literals within removeParenthesesContent functions, contribute to overall code consistency. (This finding is of low severity and not commented inline due to review settings).

Merge Readiness

The pull request makes good progress in integrating the open feedback feature. However, the high-severity issue regarding the visibility of the feedback link needs to be addressed to ensure the feature is functional for end-users. It is recommended that this issue be resolved before merging. As a reviewer, I am not authorized to approve pull requests; further review and approval by authorized team members will be necessary.

@anyulled anyulled merged commit 45cb2ff into main Jun 10, 2025
12 checks passed
@anyulled anyulled deleted the feat/open-feedback branch June 10, 2025 00:05
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
67.7% Coverage on New Code (required ≥ 75%)
4.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants